package com.atguigu.lease;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.CrossOrigin;

@MapperScan("com.atguigu.lease.web.*.mapper")
@SpringBootApplication
@EnableScheduling
@CrossOrigin(maxAge = 3600)
public class AdminWebApplication {
    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    public static void main(String[] args) {
        SpringApplication.run(AdminWebApplication.class, args);
    }

}